import React, {Component} from 'react';
import {View, Text} from 'react-native';
import {createMaterialTopTabNavigator} from '@react-navigation/material-top-tabs';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import Player from '../player/player';
import SongItem from '../list/songItem';
import AlbumItem from '../list/albumItem';
const Stack = createStackNavigator();
const Tab = createMaterialTopTabNavigator();
export default class list extends Component {
  constructor(props) {
    super(props);
    // console.log(this.props);
    this.state = {};
  }

  render() {
    return (
      <Tab.Navigator>
        <Tab.Screen
          Screen="SongItem"
          name="歌曲列表"
          component={() => {
            return <SongItem navigation={this.props.navigation} />;
          }}
        />
        <Tab.Screen
          name="专辑列表"
          component={() => {
            return <AlbumItem navigation={this.props.navigation} />;
          }}
        />
      </Tab.Navigator>
    );
  }
}
